package user;

import book.BookList;
import operation.IOPeration;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 86135
 * Date: 2023-04-02
 * Time: 20:55
 */
public abstract class User {
    protected String name;

    public IOPeration[] ioPeration;


    public User(String name) {

        this.name = name;
    }
    public abstract int menu();
    public void  doOperation(int choice, BookList bookList){
        ioPeration[choice].work(bookList);
    }


}
